package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("orders")
public class Orders {
    @TableId(value = "orderId", type = IdType.AUTO)
    private Integer orderId;
    private Integer pId;            // 患者ID
    private String item;            // 订单项目
    private BigDecimal amount;      // 金额
    private Integer payStatus;      // 0未支付 1已支付 2已退款
    private Integer sourceType;     // 1住院押金 2购药
    private Integer sourceId;       // 来源ID：aId 或 purchaseId
    private LocalDateTime createTime;
    private LocalDateTime payTime;
    private LocalDateTime refundTime;
}

